﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Method.Token
{
    public static class GetJson
    {
        public static string getJson(string json,string Key) {
            var arr = json.Trim('}', '{').Split(',').ToList();
            return arr.FirstOrDefault(u => u.Split(':')[0].Trim('"').ToString() == Key).Split(':')[1].Trim('"').ToString();
        }
    }
}
